﻿using System;

class SortNumbers
{
    static void Main()
    {
        Console.Write("Please enter first number: ");
        string consoleInput = Console.ReadLine();
        int first = int.Parse(consoleInput);
        Console.Write("Please enter second number: ");
        consoleInput = Console.ReadLine();
        int second = int.Parse(consoleInput);
        Console.Write("Please enter third number: ");
        consoleInput = Console.ReadLine();
        int third = int.Parse(consoleInput);
        int big;
        int middle;
        int small;

        if (first > second)
        {
            if (first > third)
            {
                big= first;
                if (second > third)
                {
                    middle = second;
                    small = third;
                }
                else
                {
                    middle = third;
                    small = second;
                }

            }
            else
            {
                big = third;
                middle = first;
                small = second;
            }
        }
        else
        {
            if (second > third)
            {
                big = second;
                if (first > third)
                {
                    middle = first;
                    small = third;
                }
                else
                {
                    middle = third;
                    small = first;
                }
            }
            else
            {
                big = third;
                middle = second;
                small = first;
            }
        }
        Console.WriteLine("The numbers in descending order: {0}, {1}, {2}", big,middle,small);
    }
}

